package cn.kgc.spring.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author: mosin
 * @version: v1.0  2022/10/13
 * 前置通知
 */
public class Before implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        // 编写需要增强的功能
        System.out.println("------开始打印日志------");

    }
}
